#ifndef __COMM_H__
#define __COMM_H__
#include "stm32l4xx.h"

typedef struct COMM_HANDLE_T {
    uint8_t (*BIT8_XOR_Check_Sum)(const uint8_t* buf, uint32_t len);
    void (*HexToString)(uint8_t* pHex, uint8_t* pAscii, uint32_t nLen);
    void (*StringToHex)(uint8_t* src, uint32_t srclen, uint8_t* pAscii, uint32_t nLen);
    char* (*MemFind)(const char* buf, int buf_size, const char* subinfo, int info_size);
    uint8_t (*BIT8_CRC_Check)(uint8_t* info, uint16_t len);
    char* (*my_memstr)(const char* str1, uint32_t len1, const char* str2);
} Comm_Handle_t;
extern Comm_Handle_t Comm_Handle;
#endif


